home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 135
/
Vol 135.iso
/
games
/
bunny_gr.swf
/
scripts
/
frame_77
/
DoAction.as
Wrap
Text File
|
2008-11-12
|
651b
|
24 lines
if(random("25") < "2" or drinks_active == "0")
{
random_hole = random(MAX_HOLES) + "1";
if(lives < MAX_LIVES and life_active == "0" and random("4") == "0")
{
random_drink = random(MAX_DRINKS) + "1";
if(random_drink == LIFE_DRINK)
{
life_active = "1";
}
}
else
{
random_drink = random(MAX_DRINKS - "1") + "1";
}
if(eval("hole" add random_hole) == "0")
{
set("hole" add random_hole,"1");
set("/hole" add random_hole add ":start_time",getTimer());
set("/hole" add random_hole add ":current_drink",random_drink);
drinks_active += "1";
}
}